package day03;

public class IfElseDemo {
    public static void main(String[] args) {

        int score = -100;
        if (score > 100) {
            System.out.println("输入错误");
        } else if (score <= 100 && score > 80) {
            System.out.println("成就优异");
        } else if (score >= 70) {
            System.out.println("成绩良好");

        } else if (score >= 60) {
            System.out.println("成绩及格");
        } else if (score >= 0) {
            System.out.println("成绩不及格");
        }else {
            System.out.println("输入报错");
        }





       /* int d = 12;
       /// d % 2 == 0 ? {System.out.println(d + "为偶数")} :{System.out.println(d + "为奇数")};//好像不能这么做哦
        if (d%2==0){
            System.out.println(d+"为偶数");

        }else {
            System.out.println(d+"为奇数");
        }*/

        /*int a = 100;
        if (a%10==0){
            System.out.println(a+"可被10整除");

        }else {
            System.out.println(a+"不可被10整除");
        }*/


    }
}
